package com.face.server.repository;

import com.face.server.entity.Role;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by ryan on 2018/1/29.
 */
public interface RoleRepository extends MongoRepository<Role,String> {
    Page<Role> findByNameRegexOrAdminNameRegexOrFunctionListRegex(String name, String adname, String func, Pageable pageable);

    Role findByAdminId(String adminId);
}
